private: System::Void AddAni_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 bool result = AP->Execute(0, 0, 0, 0, "");

			 if(result)
			 {
				 TGNAni *newAni = new TGNAni;

				 newAni->ID = AP->GetID();
				 newAni->nextID = AP->GetNextID();
				 newAni->boundW = AP->GetBBoxWidth();
				 newAni->boundH = AP->GetBBoxHeight();
				 strncpy(newAni->name, StringToArray(AP->GetName()), 9);
				 newAni->numFrames = 0;

				 AnimObject *newListItem = new AnimObject;

				 newListItem->SetAni(newAni);

				 AniList->SelectedIndex = AniList->Items->Add((Object*)newListItem);

				 FrameList->DataSource = NULL;
				 FrameList->DataSource = newListItem->frames;
				 FrameList->DisplayMember = "ToString";

				 needsSave(true);
			 }

		 }

private: System::Void AniList_SelectedIndexChanged(System::Object *  sender, System::EventArgs *  e)
		 {
			 //FrameList->Items->Clear();

			 if(AniList->SelectedIndex < 0)
				 return;

			 /*TGNAni *ani = file->GetAni(AniList->SelectedIndex);*/

			 AnimObject *curAni = (AnimObject*)AniList->SelectedItem;
			 TGNAni *ani = curAni->GetAni();

			 FrameList->DataSource = NULL;
			 FrameList->DataSource = curAni->frames;
			 FrameList->DisplayMember = "ToString";

			 bounds.Width = ani->boundW;
			 bounds.Height = ani->boundH;

		/*	 for(int i = 0; i < ani->numFrames; i++)
			 {
				 FrameList->Items->Add(S"Frame");
			 }*/
		 }

private: System::Void AniList_MouseDown(System::Object *  sender, System::Windows::Forms::MouseEventArgs *  e)
		 {
			 if(e->Button == MouseButtons::Right)
			 {
				 Point pt(e->X, e->Y);
				 AniList->SelectedIndex = AniList->IndexFromPoint(pt);
			 }
		 }